package com.yiwei.app.modules.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

public class Car {
	@NotEmpty
	private String id;           //车辆编号主键

	@NotEmpty
	private String carOwnerId;   //车主id

	@NotEmpty
	private String plateNumber;   //车牌号

	@NotEmpty
	private Double serviceLife;   //车辆使用年限

	@NotEmpty
	private Double mileage;     //车辆里程

	@NotEmpty
	private Double tonnage;     //车辆吨位

	@NotEmpty
	private Double area;       //车辆面积

	@NotEmpty
	private String carTypeId;   //车辆类型编号

	@NotEmpty
	private String accountingSettingId;  //计费设置id

	@NotEmpty
	private String frameNumber;   //车驾号

	@NotEmpty
	private String engineNumber;//发动机号

	@NotEmpty
	private String brand;        //品牌

	private String note;          //备注

	private String delFlag;       //删除标记

	@NotEmpty
	private String areaId;       // 区id

	@NotEmpty
	private String detailedAddress;  //详细地址

	@NotEmpty
	private String adminId;          //创建人id
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date createTime;         //创建时间
	@DateTimeFormat(pattern="yyyy-MM-dd")   
	private Date lastModifyTime;     //最后修改时间

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id == null ? null : id.trim();
	}

	public String getCarOwnerId() {
		return carOwnerId;
	}

	public void setCarOwnerId(String carOwnerId) {
		this.carOwnerId = carOwnerId == null ? null : carOwnerId.trim();
	}

	public String getPlateNumber() {
		return plateNumber;
	}

	public void setPlateNumber(String plateNumber) {
		this.plateNumber = plateNumber == null ? null : plateNumber.trim();
	}

	public Double getServiceLife() {
		return serviceLife;
	}

	public void setServiceLife(Double serviceLife) {
		this.serviceLife = serviceLife;
	}

	public Double getMileage() {
		return mileage;
	}

	public void setMileage(Double mileage) {
		this.mileage = mileage;
	}

	public Double getTonnage() {
		return tonnage;
	}

	public void setTonnage(Double tonnage) {
		this.tonnage = tonnage;
	}

	public Double getArea() {
		return area;
	}

	public void setArea(Double area) {
		this.area = area;
	}

	public String getCarTypeId() {
		return carTypeId;
	}

	public void setCarTypeId(String carTypeId) {
		this.carTypeId = carTypeId == null ? null : carTypeId.trim();
	}

	public String getAccountingSettingId() {
		return accountingSettingId;
	}

	public void setAccountingSettingId(String accountingSettingId) {
		this.accountingSettingId = accountingSettingId == null ? null : accountingSettingId.trim();
	}

	public String getFrameNumber() {
		return frameNumber;
	}

	public void setFrameNumber(String frameNumber) {
		this.frameNumber = frameNumber == null ? null : frameNumber.trim();
	}

	public String getEngineNumber() {
		return engineNumber;
	}

	public void setEngineNumber(String engineNumber) {
		this.engineNumber = engineNumber == null ? null : engineNumber.trim();
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand == null ? null : brand.trim();
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note == null ? null : note.trim();
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag == null ? null : delFlag.trim();
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId == null ? null : areaId.trim();
	}

	public String getDetailedAddress() {
		return detailedAddress;
	}

	public void setDetailedAddress(String detailedAddress) {
		this.detailedAddress = detailedAddress == null ? null : detailedAddress.trim();
	}

	public String getAdminId() {
		return adminId;
	}

	public void setAdminId(String adminId) {
		this.adminId = adminId == null ? null : adminId.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
}